<div id="articles" class="articles">
<?php $iArticle=0 ?>
<?php foreach ($this->parties as $partie) : ?>
	<h3><a href="#"><?= $this->reformatText($partie->getArticle()->label) ?></a></h3>
	<div id="articlegite<?=$iArticle?>">
		<table>
			<tr>
				<td class="leftSide">
					<p><?= $this->reformatText($partie->getArticle()->text) ?></p>
				</td>
				<td>
					<?php if (count($partie->getImages()) > 0) :?>
					<div class="anythingSlider">
					<div class="wrapper">
					<ul>
					<?php foreach ($partie->getImages() as $image) : ?>
                        <li><?=$this->optimizedHtmlImage($image, 458, 338, array('class' => 'inside'))?></li>
					<?php endforeach;?>
					</ul>
					</div>
					</div>
					<?php endif; ?>
				</td>
			</tr>
		</table>
	</div>
	<?php $iArticle++ ?>
<?php endforeach; ?>
</div>
<?php 
$this->js()
->jQueryUi()
->jQueryAnythingSlider()
->addReadyScript("$('#articles').accordion();");
?>